function voteCallback(data, status, request) {

	$(".voteButton").hide();
	this.srcElement.parentElement.innerHTML = "<span class='voteMessage'>You voted for this option</span>";
}

/* The call to proxy here lets you wrap up other info and pass to the callback, i.e. the event */

function voteFor(event, boardId, threadId, optionId) {

	var xml = "<Requests>" + voteMessage(boardId, threadId, optionId) + "</Requests>";
	sendMessage(xml, $.proxy(voteCallback, event));
}